<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>字体</title>
		<link rel="stylesheet" href="../../css/bootstrap.min.css" />
	</head>
	<body>
		<!-- 
			btn-group            按钮组
			btn-group-*          改变按钮的尺寸
			btn-group-vertical   竖着排列
			btn-group-justified  让按钮两端对齐
		-->
		<div class="container">
			<!-- 单个按钮 -->
			<div class="row">
				<button class="btn btn-primary">海淀区</button>
				<button class="btn btn-danger">朝阳区</button>
				<button class="btn btn-success">大兴区</button>
				<button class="btn btn-info">密云区</button>
			</div>
			<!-- 按钮组 -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-danger">朝阳区</button>
					<button class="btn btn-success">大兴区</button>
					<button class="btn btn-info">密云区</button>
				</div>
			</div>
			<!-- 按钮组尺寸大小 -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group btn-group-lg">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-danger">朝阳区</button>
					<button class="btn btn-success">大兴区</button>
					<button class="btn btn-info">密云区</button>
				</div>
				<div class="btn-group btn-group-md">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-danger">朝阳区</button>
					<button class="btn btn-success">大兴区</button>
					<button class="btn btn-info">密云区</button>
				</div>
				<div class="btn-group btn-group-sm">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-danger">朝阳区</button>
					<button class="btn btn-success">大兴区</button>
					<button class="btn btn-info">密云区</button>
				</div>
				<div class="btn-group btn-group-xs">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-danger">朝阳区</button>
					<button class="btn btn-success">大兴区</button>
					<button class="btn btn-info">密云区</button>
				</div>
			</div>
			<!-- 按钮组,垂直排列 -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group-vertical">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-danger">朝阳区</button>
					<button class="btn btn-success">大兴区</button>
					<button class="btn btn-info">密云区</button>
				</div>
			</div>
			<!-- btn两端对齐，如果说是button，那需要给它们添加一个父级，并且给父级添加一个btn-group的class  -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group btn-group-justified">
					<div class="btn-group">
						<button class="btn btn-primary">海淀区</button>
					</div>
					<div class="btn-group">
						<button class="btn btn-danger">朝阳区</button>
					</div>
					<div class="btn-group">
						<button class="btn btn-success">大兴区</button>
					</div>
					<div class="btn-group">
						<button class="btn btn-info">密云区</button>
					</div>
				</div>
			</div>
			<!-- btn两端对齐，如果说是input，那需要给它们添加一个父级，并且给父级添加一个btn-group的class  -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group btn-group-justified">
					<div class="btn-group">
						<input type="button" class="btn btn-primary" value="海淀区" />
					</div>
					<div class="btn-group">
						<input type="button" class="btn btn-danger" value="朝阳区" />
					</div>
					<div class="btn-group">
						<input type="button" class="btn btn-success" value="大兴区" />
					</div>
					<div class="btn-group">
						<input type="button" class="btn btn-info" value="密云区" />
					</div>
				</div>
			</div>
			<!-- btn两端对齐，如果说是a标签，则不需要给它们添加一个父级  -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group btn-group-justified">
					<a href="#" class="btn btn-primary">海淀区</a>
					<a href="#" class="btn btn-success">朝阳区</a>
					<a href="#" class="btn btn-danger">大兴区</a>
				</div>
			</div>
			<!-- 给按钮添加三角形 -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group">
					<button class="btn btn-primary">海淀区<span class="caret"></span></button>
					<a href="#" class="btn btn-success">海淀区<span class="caret"></span></a>
				</div>
			</div>
			<!-- 给按钮组添加三角形 -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-primary"><span class="caret"></span></button>
				</div>
			</div>
			<!-- 给按钮组添加三角形(向上) -->
			<div class="row" style="margin-top: 20px;">
				<div class="btn-group dropup">
					<button class="btn btn-primary">海淀区</button>
					<button class="btn btn-primary"><span class="caret"></span></button>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="../../js/jquery-2.1.0.js" ></script>
		<script type="text/javascript" src="../../js/bootstrap.min.js" ></script>
	</body>
</html>
